<template>
  <view class="content">
    <button type="primary" @click="takePhoto">扫码页面</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      src: "",
    };
  },
  methods: {
    takePhoto() {
      this.$Router.push({
        name: "index2",
      });
    },
    error(e) {
      console.log(e.detail);
    },
    handleScancode(e) {
      console.log("扫码识别到", e);
    },
  },
};
</script>

<style>
.content {
}
</style>
